﻿using Pay.TO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pay.Data {
    /// <summary>
    /// 集市商品
    /// </summary>
    public class TokenBazaarProduct {
        public long Id { get; set; }
        /// <summary>
        /// 用户id
        /// </summary>
        public long MerchantId { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        public string ProductName { get; set; }
        /// <summary>
        /// 商品描述
        /// </summary>
        public string ProdcutDesc { get; set; }
        /// <summary>
        /// 图片
        /// </summary>
        public string Imgs { get; set; }
        /// <summary>
        /// 主图
        /// </summary>
        public string MainImg { get; set; }
        /// <summary>
        /// (红钻)价格
        /// </summary>
        public decimal Price { get; set; }
        /// <summary>
        /// 市场价格
        /// </summary>
        public decimal MarketPrice { get; set; }
        /// <summary>
        /// 分类
        /// </summary>
        public long CategoryId { get; set; }
        /// <summary>
        /// 是否推荐
        /// </summary>
        public bool IsRecommend { get; set; }
        /// <summary>
        /// 交付方式 0 包邮 1 到付
        /// </summary>
        public int Delivering { get; set; }
        /// <summary>
        /// 商品状态
        /// </summary>
         public EBazaarProductStatus Status { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public int Num { get; set; }
        /// <summary>
        /// 是否已删除
        /// </summary>
        public bool IsDel { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public long CreateTime { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        public long UpdateTime { get; set; }
        /// <summary>
        /// 乐观并发
        /// </summary>
        public byte[] RowVersion { get; set; }
        /// <summary>
        /// 商品分类
        /// </summary>
        public virtual Category Category { get; set; }
        /// <summary>
        /// 商户
        /// </summary>
        public virtual Merchant Merchant { get; set; }
    }
}
